package com.wsz.bot.service.impl;

import com.wsz.bot.service.BotRunService;
import com.wsz.pojo.R;
import com.wsz.pojo.dto.BotDto;
import org.springframework.stereotype.Service;

@Service
public class BotRunServiceImpl implements BotRunService {
    public final static BotPool botPool = new BotPool();
    @Override
    public R addBot(BotDto botDto) {
        botPool.addBot(botDto);
        return R.ok();
    }
}
